﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GONES.IBLL;

public partial class Console_System_Orgs_OrgAdd : CPage
{
    public string ParentId { get; set; }
    public string ParentName { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string parentid = "";
            parentid = Request.QueryString["PID"].ToString();
            var departManager = AppContext.GetObject("S_DepartManager") as IS_DepartManager;
            GONES.Model.S_Depart depart = departManager.Get(parentid);
            ParentId = parentid;
            ParentName = depart.DepartName;
        }
    }
}